import httpUtil from "@/utils/httpUtil";

/**
 * 通过用户请求的ip地址，获取系信息
 * @param callBack
 */
const getCurrentCityMethod = (callBack) => {
	return httpUtil.post('/api/yz/getIpAndArea', {}, res => {
		// console.log('getCurrentCityMethod', res)

		// {"code":1,"msg":"ok","time":"1666756029","data":{"createtime":1666756029,"ip":"221.237.23.53","province":"四川","city":"成都"}}
		callBack(res);
	})

}

export default {
	getCurrentCityMethod
}
